/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_bitacora_rutaCriteria extends AbstractORMCriteria {
	public final IntegerExpression bi_id_bitacora;
	public final DateExpression bi_fecha;
	public final IntegerExpression bi_nro_guia;
	public final IntegerExpression bi_kilometraje_inicial;
	public final IntegerExpression bi_kilometraje_final;
	
	public Tbv_bitacora_rutaCriteria(Criteria criteria) {
		super(criteria);
		bi_id_bitacora = new IntegerExpression("bi_id_bitacora", this);
		bi_fecha = new DateExpression("bi_fecha", this);
		bi_nro_guia = new IntegerExpression("bi_nro_guia", this);
		bi_kilometraje_inicial = new IntegerExpression("bi_kilometraje_inicial", this);
		bi_kilometraje_final = new IntegerExpression("bi_kilometraje_final", this);
	}
	
	public Tbv_bitacora_rutaCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_bitacora_ruta.class));
	}
	
	public Tbv_bitacora_rutaCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_ruta_programadaCriteria createTbv_ruta_programadarp_id_ruta_programadaCriteria() {
		return new Tbv_ruta_programadaCriteria(createCriteria("tbv_ruta_programadarp_id_ruta_programada"));
	}
	
	public Tbv_bitacora_ruta uniqueTbv_bitacora_ruta() {
		return (Tbv_bitacora_ruta) super.uniqueResult();
	}
	
	public Tbv_bitacora_ruta[] listTbv_bitacora_ruta() {
		java.util.List list = super.list();
		return (Tbv_bitacora_ruta[]) list.toArray(new Tbv_bitacora_ruta[list.size()]);
	}
}

